<div class="row" style="height:100%;">
	<div class="col-lg-12" style="border-right:1px solid #e6e6e6;padding-right:0px;">
		<h1 class="site-h1" style="background-color:#FFFFFF;">
			租户列表<#if extentionList??>（${extentionList?size}）</#if>
			<span style="float:right;">
				<button class="layui-btn layui-btn-sm green" href="/admin/callcenter/pbxhostorgirela/add.html?hostid=${pbxHost.id!''}" data-toggle="ajax" data-width="700" data-height="650" data-title="添加租户">
					添加租户
				</button>
			</span>
		</h1>
		<div class="row" style="padding:5px;">
			<div class="col-lg-12">
				<table class="layui-table" lay-skin="line">
				  <colgroup>
						<col width="10%">
						<col width="10%">
						<col width="1%">
						<col>
				  </colgroup>
				  <thead>
				  <#if userList?? && userList.content?? && userList.content?size gt 0>
					<tr>
					  <th>租户名</th>
					  <th>租户ID</th>
					  <th style="white-space:nowrap;" nowrap="nowrap">操作</th>
					</tr> 
					</#if>
				  </thead>
				  <tbody>
					<#if userList?? && userList.content?? && userList.content?size gt 0>
					<#list userList.content as user>
					<tr>
					  <td>
							<a href="/admin/multitenant/user/index.html?tenantcode=${user.tenantcode!''}">${user.tenantname!''}</a>							
					  </td>
					  <td>${user.tenantcode!''}</td>
					  <td style="white-space:nowrap;" nowrap="nowrap">
					  		<a href="/admin/callcenter/pbxhostorgirela/delete.html?orgi=${user.tenantcode!''}&hostid=${pbxHost.id!''}" style="margin-left:10px;" data-toggle="tip" data-callback="loadURL" data-target="#callCenterContent" data-title="请确认是否移除租户？">
					  			<i class="layui-icon" style="color:red;">&#x1006;</i>
					  			移除
					  		</a>
					  </td>
					</tr>
					</#list>
					<#else>
						<div class="ukefu-empty">
							<i class="layui-icon"></i>
							<div style="">
								还没有租户记录
							</div>
						</div>
					</#if>
				  </tbody>
				</table>
			</div> 	   
		</div>
	</div>	
</div>
